package com.learning.spring.data.orm.dao.design.service.impl;

import com.learning.spring.data.orm.dao.design.entity.Address;
import com.learning.spring.data.orm.dao.design.service.IAddressService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName: AddressServiceImpl
 * Description:
 * Date: 2020/11/3 21:04 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Transactional(rollbackFor = Exception.class,
        isolation = Isolation.DEFAULT,
        propagation = Propagation.REQUIRED)
@Service
public class AddressServiceImpl implements IAddressService {

    @Override
    public int add(Address address) {
        return 0;
    }

}
